package org.zdc.zui;
import nme.geom.Point;

interface IConstraintedVisual 
{
	/**
	 * 期望宽
	 */
	public function get preferredWidth():Float;
	public function set preferredWidth(value:Float):Void;
	
	/**
	 * 期望高
	 */
	public function get preferredHeight():Float;
	public function set preferredHeight(value:Float):Void;
	
	/**
	 * 尺寸
	 * @return
	 */
	public function getSize():Point;
	public function setSize(pos:Point):Void;
	
	/**
	 * 父容器
	 */
	public function get parent():IContainer;
	public function set parent(value:IContainer):Void;
	
	/**
	 * 布局
	 */
	public function layout():Void;
}